﻿{% extends "base.html" %}
{% block Before_Newslist %}
<div id="main">
<div id="content">
	<div id="confident">

		<div id="c_flash">
			
<script language='javascript'>
linkarr = new Array();
picarr = new Array();
textarr = new Array();
var focus_width=295;
var focus_height=211;
var text_height=20;
var pics = "";
var links = "";
var texts = "";
var swf_height = focus_height+text_height;
var defJpeg = "/static/images/1.jpg";

linkarr[1]="http://visameblog.appspot.com/entry/8019/";picarr[1] ="/static/images/1.jpg";textarr[1]="GAE中多对多关系的实现";linkarr[2]="http://visameblog.appspot.com/entry/4035/";picarr[2] ="/static/images/2.jpg";textarr[2]="美国大学如何录取新生";linkarr[3]="http://visameblog.appspot.com/entry/4029/";picarr[3] ="/static/images/3.jpg";textarr[3]="一个绝非牛人的申请之路";

for(i=1;i<picarr.length;i++){
  //if(picarr[i].indexOf("jpg")==-1 && picarr[i].indexOf("JPG")==-1) picarr[i] = defJpeg;
  if(pics=="") pics = picarr[i];
  else pics += "|"+picarr[i];
}

for(i=1;i<linkarr.length;i++){
  if(links=="") links = linkarr[i];
  else links += "|"+linkarr[i];
}

for(i=1;i<textarr.length;i++){
  if(texts=="") texts = textarr[i];
  else texts += "|"+textarr[i];
}
document.write('<object type="application/x-shockwave-flash" data="/static/swf/slide.swf" width="' + focus_width + '" height="' + swf_height + '">');
			document.write('<param name="movie" value="/static/swf/slide.swf" />');
			document.write('<param name="allowScriptAcess" value="sameDomain" />');
			document.write('<param name="quality" value="best" />');
			document.write('<param name="bgcolor" value="#E5ECF4" />');
			document.write('<param name="scale" value="noScale" />');
			document.write('<param name="menu" value="false">');
			document.write('<param name="wmode" value="opaque" />');
			document.write('<param name="FlashVars" value="playerMode=embedded&pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" />');
			document.write('</object>');
</script>
		</div> <!-- end c_flash -->
		<div id="c_focusAndHot">
			<div id="c_focus">
				<dl>
					<dt><a href="/entry/{{ focus_entry.id }}/" title="{{ focus_entry.title }}" target=_blank>{{ focus_entry.title }}</a></dt>

<dd>
{{ focus_entry.excerpt }}[<a href="/entry/{{ focus_entry.id }}/" target=_blank>Read More</a>]</dd>
				</dl>
			</div>
			<div id="c_hot">
			<ol>
				{% for hot_entry in hot_entries %}
				<li><font color="red">[HOT]</font><a href="/entry/{{ hot_entry.id }}/"  title="{{ hot_entry.title }}" target="_blank">{{ hot_entry.title }}</a></li>
				{% endfor %}


			</ol>
			</div>
			
			<div id="c_ad">
			<center><a href="http://europa.eu/" title="Hot Banner" target="_blank"><img src="/static/images/hotbanner.jpg"></a></center>

			</div>
		</div> <!-- end c_focusAndHot -->
	</div> <!-- end confident -->

	</div>
	</div>

	<!-- Main end-->
	<!-- 头部 end -->

	<div id="leftcontainer">
		<!-- 排序 -->
		<div class="lefttop">
			<h3><span class="tool"><strong>Simply the Best</strong></span></h3>
			<h2>Best Articles by Visame</h2>
		</div>
{% endblock %}
		<!-- 文章列表 -->	
	<!-- 分页链接 -->
{% block After_Newslist %}
	</div>
  	<div class="clear"></div>
{% endblock %}